<!DOCTYPE html>
<html lang="ch">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>黑马面试</title>
    <link rel="stylesheet" href="./css/normalize.css">
    <link rel="stylesheet" href="./css/swiper.min.css">
    <link rel="stylesheet" href="./css/index.css">
</head>

<body>
    <section class="wrap ">
        <!-- 头部区域 -->
        <header class="header">黑马面面</header>
        <!-- 导航栏部分 -->
        <nav class="nav">
            <a href="#" class="item">
                <img src="./icons/icon1.png" alt="">
                <span>HR面试</span>
            </a>
            <a href="#" class="item">
                <img src="./icons/icon2.png" alt="">
                <span>笔试</span>
            </a>
            <a href="#" class="item">
                <img src="./icons/icon3.png" alt="">
                <span>技术面试</span>
            </a>
            <a href="#" class="item">
                <img src="./icons/icon4.png" alt="">
                <span>模拟面试</span>
            </a>
            <a href="#" class="item">
                <img src="./icons/icon5.png" alt="">
                <span>面试技巧</span>
            </a>
            <a href="#" class="item">
                <img src="./icons/icon6.png" alt="">
                <span>薪资查询</span>
            </a>
        </nav>
        <!-- 广告go模块 -->
        <section class="go">
            <img src="./images/go.png" alt="">
        </section>
    </section>

    <!--就业指导  内容模块 -->
    <section class="content">
        <div class="con-hd">
            <h4>
                <span class="icon"><img src="./icons/i1.png" alt=""></span>
                就业指导
            </h4>
            <a href="#" class="more">更多&gt;&gt;</a>
        </div>
        <!-- 轮播图，使用插件 -->
        <!-- 旋转木马：点击后跳转 -->
        <!-- 为何如此放？ -->
        <!-- 因为下方还有一个轮播图，需要做区别则加一个父亲盒子 -->
        <div class="get_job_focus">
            <!-- Swiper -->
            <div class="swiper-container get_job_fo">
                <div class="swiper-wrapper ">
                    <div class="swiper-slide addnews">
                        <a href="#"><img src="./images/pic.png" alt=""></a>
                        <p>老师教你应对面试技巧</p>
                    </div>
                    <div class="swiper-slide addnews">
                        <a href="#"><img src="./images/ldh.jpg" alt=""></a>
                        <p>老师教你应对面试技巧</p>
                    </div>
                    <div class="swiper-slide addnews">
                        <a href="#"><img src="./images/3.jpg" alt=""></a>
                        <p>老师教你应对面试技巧</p>
                    </div>

                </div>

            </div>
            <!-- 根据需求，将左右箭头拿出，放到container外面 -->
            <!-- 拿出来后由于是有定位的，因此需要给它现在的父盒子添加一个相对定位 -->
            <div class="swiper-button-next"></div>
            <div class="swiper-button-prev"></div>
        </div>
    </section>

    <!--充电学习  内容模块 -->
    <section class="content study_con">
        <div class="con-hd">
            <h4>
                <span class="icon"><img src="./icons/i2.png" alt=""></span>
                充电学习
            </h4>
            <a href="#" class="more">更多&gt;&gt;</a>
        </div>
        <!-- 学习模块轮播图 -->
        <div class="study">
            <!-- Swiper -->
            <div class="swiper mySwiper">
                <div class="swiper-wrapper">
                    <div class="swiper-slide addnews">
                        <img src="./images/pic1.png" alt="">
                        <h5>说地道英语，告别中式英语</h5>
                        <p><span>153</span>人学习</p>
                    </div>
                    <div class="swiper-slide addnews">
                        <img src="./images/pic2.png" alt="">
                        <h5>说地道英语，告别中式英语</h5>
                        <p><span>153</span>人学习</p>
                    </div>
                    <div class="swiper-slide addnews">
                        <img src="./images/pic1.png" alt="">
                        <h5>说地道英语，告别中式英语</h5>
                        <p><span>153</span>人学习</p>
                    </div>
                    <div class="swiper-slide addnews">
                        <img src="./images/pic2.png" alt="">
                        <h5>说地道英语，告别中式英语</h5>
                        <p><span>153</span>人学习</p>
                    </div>
                </div>

            </div>
        </div>
    </section>

    <footer class="footer">
        <a href="#" class="item">
            <img src="./icons/home.png" alt="">
            <span>首页</span>
        </a>
        <a href="#" class="item">
            <img src="./icons/ms.png" alt="">
            <span>技术面试</span>
        </a>
        <a href="#" class="item">
            <img src="./icons/net.png" alt="">
            <span>模拟面试</span>
        </a>
        <a href="#" class="item">
            <img src="./icons/user.png" alt="">
            <span>我的主页</span>
        </a>
    </footer>
    <script src="./js/flexible.js"></script>
    <!-- Swiper JS -->
    <script src="./js/swiper.min.js"></script>
    <!-- Initialize Swiper -->
    <script>
        // 第一个函数里面是 就业指导轮播图
        (function () {
            var swiper = new Swiper('.swiper-container', {
                // 能显示的slide个数
                // 就业指导的轮播图，除了中间一张，左右两张各被挡住一半，因此2张加起来只算一张，因此这里只能为2
                slidesPerView: 2,
                // 每个slide之间的距离
                spaceBetween: 30,
                // 让选中的元素是否在中间显示
                centeredSlides: true,
                loop: true,
                // 查看swiper api手册
                // pagination是分页器，也因此指的是这个轮播图中的下方圆点导航
                // 由于不需要删除即可
                // pagination: {
                //     el: '.swiper-pagination',
                //     clickable: true,
                // },

                // 本例导航是左右箭头，因此在swiper中找到有箭头的基础模板，查看箭头多了哪些语句，添加在此即可
                navigation: {
                    nextEl: ".swiper-button-next",
                    prevEl: ".swiper-button-prev",
                },
                // 注意，此时只是在js中放箭头功能是没有效果的
                // 还需要在html中放置箭头样式和元素
            });
        })();
        // 第二个函数的轮播
        (function () {
            // 如果有多个轮播图最好修改下swiper - container
            //只需要再加一个名字即可
            var swiper = new Swiper(".mySwiper", {
                // 充电学习的显示个数为2.2个
                slidesPerView: 2.2,
                spaceBetween: 20,
            });
        })();
    </script>
</body>

</html>